# 定义装饰器
def outer(func):
    def inner(*args):
        print("正在努力计算中.....")
        result = func(*args)
        return result

    return inner


# 使用装饰器定义函数
@outer
def get_sum(*args):
    sum = 0
    for i in args:
        sum += i
    return sum


print(get_sum(1, 2, 3))
